From 3b1fc24d4d6e89feed431d96c396a6a40b7a177c Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 9 Jul 2015 18:06:02 +0100 Subject: [PATCH] bsd-sys-queue-h-seddery: Massage `offsetof' For some reason BSD's queue.h uses `__offsetof'. It expects it to work just like offsetof. So use offsetof. Reported-by: Andrew Cooper Signed-off-by: Ian Jackson Acked-by: Ian Campbell --- tools/include/xen-external/bsd-sys-queue-h-seddery | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/include/xen-external/bsd-sys-queue-h-seddery b/tools/include/xen-external/bsd-sys-queue-h-seddery index 7a957e3a10..3f8716d9ff 100755 --- a/tools/include/xen-external/bsd-sys-queue-h-seddery +++ b/tools/include/xen-external/bsd-sys-queue-h-seddery @@ -69,4 +69,6 @@ s/\b struct \s+ type \b/type/xg; s,^\#include.*sys/cdefs.*,/* $& */,xg; +s,\b __offsetof \b ,offsetof,xg; + s/\b( NULL )/0/xg; -- 2.30.2